package com.miplus.ccrm.core.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 系统地址表
 * @TableName sys_post
 */
@TableName(value ="sys_post")
@Data
public class SysPost implements Serializable {
    /**
     * 
     */
    @TableId
    private String indexs;

    /**
     * 序号
     */
    private String indexsold;

    /**
     * 简码
     */
    private String code;

    /**
     * 层级，1大区、2省、3市、4区县
     */
    private String datalevel;

    /**
     * 行政区域编码
     */
    private String regioncode;

    /**
     * 行政区域英文
     */
    private String remark;

    /**
     * 省编码
     */
    private String provcode;

    /**
     * 省
     */
    private String province;

    /**
     * 城市编码
     */
    private String citycode;

    /**
     * 城市
     */
    private String city;

    /**
     * 区县编码
     */
    private String districtcode;

    /**
     * 区县
     */
    private String district;

    /**
     * 电话区号
     */
    private String areacode;

    /**
     * 邮政编码
     */
    private String postcode;

    /**
     * 父级编号
     */
    private String parentidold;

    /**
     * 拼音简拼
     */
    private String jianpin;

    /**
     * 短名称
     */
    private String shortname;

    /**
     * 全名称
     */
    private String fullname;

    /**
     * 拼音简拼全写
     */
    private String fulljianpin;

    /**
     * 名称
     */
    private String name;

    /**
     * 
     */
    private String parentid;

    /**
     * 地域系数
     */
    private BigDecimal zoneratio;

    /**
     * 
     */
    private String checkno;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysPost other = (SysPost) that;
        return (this.getIndexs() == null ? other.getIndexs() == null : this.getIndexs().equals(other.getIndexs()))
            && (this.getIndexsold() == null ? other.getIndexsold() == null : this.getIndexsold().equals(other.getIndexsold()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getDatalevel() == null ? other.getDatalevel() == null : this.getDatalevel().equals(other.getDatalevel()))
            && (this.getRegioncode() == null ? other.getRegioncode() == null : this.getRegioncode().equals(other.getRegioncode()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getProvcode() == null ? other.getProvcode() == null : this.getProvcode().equals(other.getProvcode()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCitycode() == null ? other.getCitycode() == null : this.getCitycode().equals(other.getCitycode()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getDistrictcode() == null ? other.getDistrictcode() == null : this.getDistrictcode().equals(other.getDistrictcode()))
            && (this.getDistrict() == null ? other.getDistrict() == null : this.getDistrict().equals(other.getDistrict()))
            && (this.getAreacode() == null ? other.getAreacode() == null : this.getAreacode().equals(other.getAreacode()))
            && (this.getPostcode() == null ? other.getPostcode() == null : this.getPostcode().equals(other.getPostcode()))
            && (this.getParentidold() == null ? other.getParentidold() == null : this.getParentidold().equals(other.getParentidold()))
            && (this.getJianpin() == null ? other.getJianpin() == null : this.getJianpin().equals(other.getJianpin()))
            && (this.getShortname() == null ? other.getShortname() == null : this.getShortname().equals(other.getShortname()))
            && (this.getFullname() == null ? other.getFullname() == null : this.getFullname().equals(other.getFullname()))
            && (this.getFulljianpin() == null ? other.getFulljianpin() == null : this.getFulljianpin().equals(other.getFulljianpin()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getParentid() == null ? other.getParentid() == null : this.getParentid().equals(other.getParentid()))
            && (this.getZoneratio() == null ? other.getZoneratio() == null : this.getZoneratio().equals(other.getZoneratio()))
            && (this.getCheckno() == null ? other.getCheckno() == null : this.getCheckno().equals(other.getCheckno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIndexs() == null) ? 0 : getIndexs().hashCode());
        result = prime * result + ((getIndexsold() == null) ? 0 : getIndexsold().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getDatalevel() == null) ? 0 : getDatalevel().hashCode());
        result = prime * result + ((getRegioncode() == null) ? 0 : getRegioncode().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getProvcode() == null) ? 0 : getProvcode().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCitycode() == null) ? 0 : getCitycode().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getDistrictcode() == null) ? 0 : getDistrictcode().hashCode());
        result = prime * result + ((getDistrict() == null) ? 0 : getDistrict().hashCode());
        result = prime * result + ((getAreacode() == null) ? 0 : getAreacode().hashCode());
        result = prime * result + ((getPostcode() == null) ? 0 : getPostcode().hashCode());
        result = prime * result + ((getParentidold() == null) ? 0 : getParentidold().hashCode());
        result = prime * result + ((getJianpin() == null) ? 0 : getJianpin().hashCode());
        result = prime * result + ((getShortname() == null) ? 0 : getShortname().hashCode());
        result = prime * result + ((getFullname() == null) ? 0 : getFullname().hashCode());
        result = prime * result + ((getFulljianpin() == null) ? 0 : getFulljianpin().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getParentid() == null) ? 0 : getParentid().hashCode());
        result = prime * result + ((getZoneratio() == null) ? 0 : getZoneratio().hashCode());
        result = prime * result + ((getCheckno() == null) ? 0 : getCheckno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", indexs=").append(indexs);
        sb.append(", indexsold=").append(indexsold);
        sb.append(", code=").append(code);
        sb.append(", datalevel=").append(datalevel);
        sb.append(", regioncode=").append(regioncode);
        sb.append(", remark=").append(remark);
        sb.append(", provcode=").append(provcode);
        sb.append(", province=").append(province);
        sb.append(", citycode=").append(citycode);
        sb.append(", city=").append(city);
        sb.append(", districtcode=").append(districtcode);
        sb.append(", district=").append(district);
        sb.append(", areacode=").append(areacode);
        sb.append(", postcode=").append(postcode);
        sb.append(", parentidold=").append(parentidold);
        sb.append(", jianpin=").append(jianpin);
        sb.append(", shortname=").append(shortname);
        sb.append(", fullname=").append(fullname);
        sb.append(", fulljianpin=").append(fulljianpin);
        sb.append(", name=").append(name);
        sb.append(", parentid=").append(parentid);
        sb.append(", zoneratio=").append(zoneratio);
        sb.append(", checkno=").append(checkno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}